package csnd.xinghe.neo4j.server.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EdgeEntity {
    @JSONField(name = "id")
    private Long id;

    //关系类型
    @JSONField(name = "label")
    private String label;

    //关系的线的类型：默认line
    @JSONField(name = "type")
    private String type;

    @JSONField(name = "source")
    private String source;

    @JSONField(name = "target")
    private String target;

    @JSONField(name = "level")
    private Integer level;

    @JSONField(name = "isRisk")
    private Boolean isRisk;

    @JSONField(name = "properties")
    private Map<String, Object> properties;
}
